package gdkjxy.jij.aoptest.birds;

import java.util.List;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class TestXmlAspectJ {
	@Test
public  void FlyTest() {
	String xmlPath="gdkjxy/jij/aoptest/birds/applicationContext.xml";
	ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlPath);
	List<Flyable> bird=(List<Flyable>) applicationContext.getBean("birds");
	  for(Flyable b:bird) {
		b.fly();	
	}

}
}
